package com.dangdang.domain;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 图书实体类
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-1-18
 */

public class Book extends Product implements java.io.Serializable {

	
	private static final long serialVersionUID = 1L;

	/** 图书作者 */
	private String author;

	/** 出版社 */
	private String publisher;

	/** 字数 */
	private String wordNumber;

	/** 版 本 */
	private String whichEdition;

	/** 总页数 */
	private String totalPage;

	/** 印次 */
	private String printNumber;

	/** ISBN 号 */
	private String isbn;

	/** 出版时间 */
	private long publishTime;

	/** 印刷时间 */
	private Integer printTime;

	/** 作者简介 */
	private String authorSummary;

	/** 目录 */
	private String catalogue;

	/**
	 * 获得该图书的出版时间
	 * 
	 * @return
	 */
	public String getPublishDate() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		Date date = new Date();
		date.setTime(publishTime);
		return sdf.format(date);
	}

	public String getAuthor() {
		return this.author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getPublisher() {
		return this.publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public String getWordNumber() {
		return this.wordNumber;
	}

	public void setWordNumber(String wordNumber) {
		this.wordNumber = wordNumber;
	}

	public String getWhichEdition() {
		return this.whichEdition;
	}

	public void setWhichEdition(String whichEdition) {
		this.whichEdition = whichEdition;
	}

	public String getTotalPage() {
		return this.totalPage;
	}

	public void setTotalPage(String totalPage) {
		this.totalPage = totalPage;
	}

	public String getPrintNumber() {
		return this.printNumber;
	}

	public void setPrintNumber(String printNumber) {
		this.printNumber = printNumber;
	}

	public String getIsbn() {
		return this.isbn;
	}

	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}

	public long getPublishTime() {
		return this.publishTime;
	}

	public void setPublishTime(long publishTime) {
		this.publishTime = publishTime;
	}

	public Integer getPrintTime() {
		return this.printTime;
	}

	public void setPrintTime(Integer printTime) {
		this.printTime = printTime;
	}

	public String getAuthorSummary() {
		return this.authorSummary;
	}

	public void setAuthorSummary(String authorSummary) {
		this.authorSummary = authorSummary;
	}

	public String getCatalogue() {
		return this.catalogue;
	}

	public void setCatalogue(String catalogue) {
		this.catalogue = catalogue;
	}

}